package com.wzh.dao;

import com.wzh.pojo.Po.Card;
import com.wzh.pojo.Po.User;
import com.wzh.pojo.Req.DataReq;
import org.apache.ibatis.annotations.*;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface CardDao {
	Integer addcards(List<String> card);

	List<Card> findall(DataReq req);

	@Delete("delete from  card where card=#{card}")
	Integer del(String card);
	@Update("update user set vip=#{time} where userid=#{userid}")
	Integer addVip(String userid,long time);
}
